﻿@model Church.Entities.Information
@{
	Layout = null;
}

@if (Model != null)
{
	<div class="container_history">
		<div class="left">
			@if (Model.ImagesCollection != null && Model.ImagesCollection.Images != null && Model.ImagesCollection.Images.Any(i => i.Position != null && i.Position.Equals("left")))
			{
				foreach (var image in Model.ImagesCollection.Images.Where(i => i.Position != null && i.Position.Equals("left")).ToList())
				{
					<img src="../@image.Url" />
				}
			}
		</div>
		<div class="delete_scroll">
			<div class="info">
				@if (Model.ParagraphsCollection != null && Model.ParagraphsCollection.Paragraphs != null && Model.ParagraphsCollection.Paragraphs.Any())
				{
					foreach (var text in Model.ParagraphsCollection.Paragraphs)
					{
						@(text != null && text.NewLineTags ? Html.Raw("<br />") : Html.Raw(string.Empty))
						<p>@(text != null ? text.Paragraph : string.Empty)</p>
						@(text != null && text.NewLineTags ? Html.Raw("<br />") : Html.Raw(string.Empty))
					}
				}
			</div>
		</div>
		<div class="right">
			@if (Model.ImagesCollection != null && Model.ImagesCollection.Images != null && Model.ImagesCollection.Images.Any(i => i.Position != null && i.Position.Equals("right")))
			{
				foreach (var image in Model.ImagesCollection.Images.Where(i => i.Position != null && i.Position.Equals("right")).ToList())
				{
					<img src="../@image.Url" />
				}
			}
		</div>
	</div>
}